package com.atguigu.util.homework3;

/**
 * @author caesar
 * @date 2025/7/4
 * @apiNote
 */
public class LightTest {
    public static void main(String[] args) {
        Light l1 = new Light();
        Light l2 = new Light();
        Light l3 = new Light();

        l1.color = "红色";
        l1.time = 60;
        l2.color = "绿色";
        l2.time = 90;
        l3.color = "黄色";
        l3.time = 3;
        System.out.println(l1.color+"颜色的灯亮"+l1.time +"秒");
        System.out.println(l2.color+"颜色的灯亮"+l2.time +"秒");
        System.out.println(l3.color+"颜色的灯亮"+l3.time +"秒");
        }
}
